package com.sky.demo.entity;

import org.realogic.cfm.domain.KEntity;

/**
 * 客户-实体对象
 */
public class EntityCustomer implements KEntity {

	private static final long serialVersionUID = 2354362263382999546L;
	// 客户ID
	private Long id;
	// 客户名称
	private String name;
	// 客户编码
	private String code;
	// 客户简称
	private String shortname;
	// 单位邮编
	private String officeZipcode;
	// 单位电话
	private String officeTel;
	// 单位传真
	private String officeFax;
	// 地址
	private String address;
	// 联系人
	private String linkMan;
	// 备注
	private String remark;
	// 状态
	private int status;
	// 次序号
	private long sortvalue;
	// 创建者
	private String createdBy;
	// 创建日期
	private java.sql.Timestamp createdOn;
	// 创建者ID
	private Long createdID;
	// 修改者
	private String updatedBy;
	// 最近修改日期
	private java.sql.Timestamp updatedOn;
	// 修改者ID
	private Long updatedID;

	public EntityCustomer() {

	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long aId) {
		this.id = aId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String aName) {
		this.name = aName;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String aCode) {
		this.code = aCode;
	}

	public String getShortname() {
		return this.shortname;
	}

	public void setShortname(String aShortname) {
		this.shortname = aShortname;
	}

	public String getOfficeZipcode() {
		return this.officeZipcode;
	}

	public void setOfficeZipcode(String aOfficeZipcode) {
		this.officeZipcode = aOfficeZipcode;
	}

	public String getOfficeTel() {
		return this.officeTel;
	}

	public void setOfficeTel(String aOfficeTel) {
		this.officeTel = aOfficeTel;
	}

	public String getOfficeFax() {
		return this.officeFax;
	}

	public void setOfficeFax(String aOfficeFax) {
		this.officeFax = aOfficeFax;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String aAddress) {
		this.address = aAddress;
	}

	public String getLinkMan() {
		return this.linkMan;
	}

	public void setLinkMan(String aLinkMan) {
		this.linkMan = aLinkMan;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String aRemark) {
		this.remark = aRemark;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int aStatus) {
		this.status = aStatus;
	}

	public long getSortvalue() {
		return this.sortvalue;
	}

	public void setSortvalue(long aSortvalue) {
		this.sortvalue = aSortvalue;
	}

	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String aCreatedBy) {
		this.createdBy = aCreatedBy;
	}

	public java.sql.Timestamp getCreatedOn() {
		return this.createdOn;
	}

	public void setCreatedOn(java.sql.Timestamp aCreatedOn) {
		this.createdOn = aCreatedOn;
	}

	public Long getCreatedID() {
		return this.createdID;
	}

	public void setCreatedID(Long aCreatedID) {
		this.createdID = aCreatedID;
	}

	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String aUpdatedBy) {
		this.updatedBy = aUpdatedBy;
	}

	public java.sql.Timestamp getUpdatedOn() {
		return this.updatedOn;
	}

	public void setUpdatedOn(java.sql.Timestamp aUpdatedOn) {
		this.updatedOn = aUpdatedOn;
	}

	public Long getUpdatedID() {
		return this.updatedID;
	}

	public void setUpdatedID(Long aUpdatedID) {
		this.updatedID = aUpdatedID;
	}

	public String toString() {
		StringBuffer returnString = new StringBuffer();
		returnString.append("com.sky.demo.entity.EntityCustomer[");
		returnString.append("id = " + this.id + ";\n");
		returnString.append("name = " + this.name + ";\n");
		returnString.append("code = " + this.code + ";\n");
		returnString.append("shortname = " + this.shortname + ";\n");
		returnString.append("officeZipcode = " + this.officeZipcode + ";\n");
		returnString.append("officeTel = " + this.officeTel + ";\n");
		returnString.append("officeFax = " + this.officeFax + ";\n");
		returnString.append("address = " + this.address + ";\n");
		returnString.append("linkMan = " + this.linkMan + ";\n");
		returnString.append("remark = " + this.remark + ";\n");
		returnString.append("status = " + this.status + ";\n");
		returnString.append("sortvalue = " + this.sortvalue + ";\n");
		returnString.append("createdBy = " + this.createdBy + ";\n");
		returnString.append("createdOn = " + this.createdOn + ";\n");
		returnString.append("createdID = " + this.createdID + ";\n");
		returnString.append("updatedBy = " + this.updatedBy + ";\n");
		returnString.append("updatedOn = " + this.updatedOn + ";\n");
		returnString.append("updatedID = " + this.updatedID + ";\n");
		returnString.append("]\n");
		return returnString.toString();
	}

	/******************* 辅助方法 *******************/
	/*
	 * 实体Key字符
	 */
	public String getKey() {
		if (id == null || id == 0) {
			return null;
		} else {
			return String.valueOf(id);
		}
	}
}